﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//Thêm thư viện
using KaraokeManagementDAO;
using KaraokeManagementDTO;

namespace KaraokeManagementBUS
{
    public class KhachHangBUS
    {
        private KhachHangDAO dao = new KhachHangDAO();

        public Boolean themKhachHang(KhachHangDTO dto)
        {
            return dao.themKhachHang(dto);
        }

        public Boolean xoaKhachHang(int MaKhachHang)
        { 
            return dao.xoaKhachHang(MaKhachHang);
        }

        public Boolean capNhatKhachHang(KhachHangDTO dto)
        {
            return dao.capNhatKhachHang(dto);
        }

        public KhachHangDTO layThongTinKhachHang(int MaKhachHang)
        {
            return dao.layThongTinKhachHang(MaKhachHang);
        }

        public List<KhachHangDTO> layDanhSachKhachHang()
        {
            return dao.layDanhSachKhachHang();
        }

        public int layMaKhachHangMoiNhat()
        {
            return dao.layMaKhachHangMoiNhat();
        }
    }
}
